from django.shortcuts import render, HttpResponse, redirect
from app01 import models


# Create your views here.


def login(request):
    if request.method == 'GET':
        return render(request, 'login.html')
    username = request.POST.get('username')
    password = request.POST.get('password')
    print(username, password)

    return redirect('home')


def home(request):
    return HttpResponse('ok')
